package com.community.common.pojo.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhu
 * @Desc:业主房屋关系表
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_owner_house")
public class OwnerHouse implements Serializable {

    private String id;

    private String openId;

    //小区ID
    private String communityId;

    //楼栋ID
    private String buildingId;

    //房屋ID
    private String houseId;

    //与业主关系 0 房主 99-租客 1-配偶 2-子 3-女 4-孙子、孙女，或外孙子、外孙女 5-父母 6-祖父母或外祖父母 7-兄、弟、姐、妹 10-儿媳 8-其他亲属 9-女婿 10-儿媳
    private String ownerRelation;

    //审核状态 0-未审核 1-审核通过 2-审核不通过
    private String checkState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}